import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home.vue'

Vue.use(Router)

export default new Router({
  routes: [{
      path: '/',
      redirect: 'componentsDemo',
      // name: 'home',
      component: Home
    },
    {
      path: '/demo',
      name: 'demo',
      component: () =>
        import ( /* webpackChunkName: "demo" */ './views/Demo.vue')
    },
    {
      path: '/componentsDemo',
      name: 'componentsDemo',
      component: () =>
        import ( /* webpackChunkName: "componentsDemo" */ './views/ComponentsDemo.vue')
    }
  ]
})